package com.hua.designpattern.creational.singleton;

/**
 * 
 * @author joshua
 * 
 *         线程安全，延迟加载
 *
 */
public class SingletonStatic {
	private static class SingletonHolder {
		private static SingletonStatic instance = new SingletonStatic();
	}

	private SingletonStatic() {

	}

	public static SingletonStatic getInstance() {
		return SingletonHolder.instance;
	}
}
